
.zlibDetailWrapper {
  background: #F5F5F5;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100%;

  .html {
    width: 744px;
    margin-top: 16px;
    box-sizing: border-box;

  }

  .relateCompany {
    width: 298px;
    background: #FFFFFF;
    border-radius: 4px;
    margin-left: 16px;
    padding: 16px;
    box-sizing: border-box;
    margin-top: 16px;
    height: fit-content;


    .related {
      .companies {
        font-size: 16px;
        line-height: 22px;
        color: #1382ef;
        cursor: pointer;
        margin-top: 20px;

        div {
          margin-bottom: 12px;
        }
      }

      .relatedItem {
        display: flex;
        justify-content: space-between;

        .name {
          font-size: 14px;
          color: #008EF4;
        }

        .btn {
          flex-shrink: 0;
          width: 45px;
          height: 20px;
          border: 0.5px solid #008EF4;
          border-radius: 2px;
          font-style: normal;
          font-size: 12px;
          line-height: 18px;
          color: #008EF4;
          text-align: center;
          margin-left: 6px;
          &.monitored{
            color: #999;
            border: 0.5px solid #e3e3e3;
          }
        }
      }

      .expand {
        text-align: center;
        color: #1382ef;
        font-size: 14px;
        padding-bottom: 15px;
        margin: 0;
        cursor: pointer;

        &.open {
          &::after {
            vertical-align: 0px;
            transform: rotate(135deg);
          }
        }

        &::after {
          content: "";
          display: inline-block;
          font-size: 0;
          line-height: 0;
          vertical-align: 3px;
          width: 7px;
          height: 7px;
          border-left: 1px solid #1382ef;
          border-bottom: 1px solid #1382ef;
          transform: rotate(-45deg);
          transition: all 0.3s;
          margin-left: 4px;
        }
      }
    }

    .event-title {
      font-weight: 600;
    }
  }
}

p {
  margin: 0;
}

.van-loading {
  text-align: center;
}

.van-skeleton {
  padding: 0 16px 10px;

  &.loading {
    padding-top: 20px;
  }
}

.html {
  background: #fff;
  color: #111;
  box-sizing: border-box;
  padding: 0px 32px;
  min-height: 100%;
  padding-top: 24px;
  padding-bottom: 100px;

  .box {
    background: #fff;
    padding: 10px 23px 10px 18px;
    margin-bottom: 8px;
  }

  .event-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    padding-bottom: 15px;
  }

  .top {
    padding: 20px 12px 13px 20px;
    margin-bottom: 8px;
    background: #fff;
    border-bottom: 1px solid #F3F3F3;
    .title {
      font-weight: 500;
      font-size: 20px;
      line-height: 28px;
      color: #111;
      margin: 0;
      display: inline-block;
      text-align: left;

      span {
        word-break: break-all;
      }
    }


    .resource {
      margin-top: 6px;
      font-weight: 400;
      font-size: 12px;
      line-height: 26px;
      color: #5c5c5c;
      float: initial;
      text-align: left;

      .tag {
        display: inline-block;
        font-weight: 400;
        font-size: 12px;
        line-height: 14px;
        color: #fff;
        background: #fb9196;
        border-radius: 3px;
        padding: 2px 6px;
        margin-right: 16px;

        // position: absolute;
        // right: 15px;
        // bottom: 0;
      }

      span {
        margin-right: 16px;
      }
    }

    .bottom_info {
      font-size: 12px;
      line-height: 14px;
      color: #999999;
      margin-top: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .collect {
        display: flex;
        align-items: center;
        cursor: pointer;

        .icon {
          margin-right: 6px;
          font-size: 14px;
        }

        &:hover .icon {
          color: #FF8F32;
        }

        &.active {
          color: #FF8F32;
        }
      }
    }
  }


  .content {
    background: #fff;
    margin-bottom: 8px;
    overflow: hidden;

    .newsLink {
      width: calc(100% - 22px);
      // height: 73px;
      margin: 12px 11px 13px;
      background: #fafafa;
      padding: 14px;
      box-sizing: border-box;
      cursor: pointer;

      &-title {
        font-weight: 500;
        font-size: 16px;
        line-height: 22px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
      }

      &-link {
        font-size: 14px;
        line-height: 20px;
        color: #8b8c8c;
        margin-top: 12px;

        img {
          width: 14px;
          height: 14px;
          margin-right: 6px;
          display: inline-block;
          vertical-align: middle;
        }
      }
    }
  }

  .expand {
    text-align: center;
    color: #1382ef;
    font-size: 14px;
    padding-bottom: 15px;
    margin: 0;
    cursor: pointer;

    &.open {
      &::after {
        vertical-align: 0;
        transform: rotate(135deg);
      }
    }

    &::after {
      content: '';
      display: inline-block;
      font-size: 0;
      line-height: 0;
      vertical-align: 3px;
      width: 7px;
      height: 7px;
      border-left: 1px solid #1382ef;
      border-bottom: 1px solid #1382ef;
      transform: rotate(-45deg);
      transition: all 0.3s;
      margin-left: 4px;
    }
  }

  .event-process {
    padding: 10px 13px 10px 18px;

    .timeline {
      position: relative;

      &-event {
        position: relative;

        &.hidden {
          display: none;
        }

        .vi--shijian {
          margin-left: 14px;
        }

        &:not(:last-child) {
          &::before {
            background-color: #a3d1ff;
            content: "";
            margin-left: -1px;
            position: absolute;
            top: 22px;
            left: 23px;
            width: 1px;
            height: 76%;
          }
        }

        &-icon {
          background: #fff;
          outline: 10px solid white;
          position: absolute;
          top: 3px;
          left: 16px;

          &-first {
            font-size: 12px;
            line-height: 16px;
            color: #1270d3;
            background-color: #f5faff;
            padding: 2px 5px;
            display: block;
            margin-left: -9px;
          }
        }

        &-process {
          padding: 0 10px 20px;
          margin-left: 46px;

          &-time {
            font-size: 15px;
            line-height: 21px;
            margin-bottom: 9px;
          }

          &-newsUrl {
            background: #fafafa;
            border-radius: 4px;
            padding: 14px 19px 10px 14px;
            overflow: hidden;
            cursor: pointer;

            &-title {
              font-weight: 500;
              font-size: 16px;
              line-height: 22px;
              color: #111;
              overflow: hidden;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-line-clamp: 1;
              -webkit-box-orient: vertical;
            }

            &-url {
              color: #8b8c8c;
              font-size: 14px;
              text-overflow: ellipsis;
              white-space: nowrap;
              overflow: hidden;

              img {
                display: inline-block;
                vertical-align: middle;
                width: 14px;
                height: 14px;
                margin-right: 6px;
              }
            }
          }
        }
      }
    }
  }

  #zlibHtml {
    line-height: 30px;
    color: #111;
    background: #fff;
    overflow: unset;
    white-space: pre-line;
    word-break: break-all;
    padding-left: 20px;

    :deep(div, p, span, img) {
      max-width: 100% !important;
      white-space: initial !important;
    }

    :deep(article) {
      white-space: initial !important;
    }

    white-space: pre-line;

    article img {
      max-width: 100%;
      width: auto !important;
      height: auto !important;
    }

    :deep(article img) {
      max-width: 100%;
      width: auto !important;
      height: auto !important;
    }

    table {
      table-layout: fixed !important;
      //width: 100% !important;
      border-collapse: collapse;
      border: none;
    }

    :deep(h1,h2,h3) {
      font-size: 20px;
    }

    td,
    th {
      width: 100% !important;
      white-space: nowrap; /* 自适应宽度 */
      word-break: keep-all; /* 避免长单词截断，保持全部 */
      border: solid #676767 1px;
      text-align: center;
      white-space: pre-line;
      word-break: break-all !important;
      word-wrap: break-word !important;
      display: table-cell;
      vertical-align: middle !important;
      white-space: normal !important;
      height: auto;
      vertical-align: text-top;
      padding: 2px 2px 0 !important;
      display: table-cell;
    }

    img {
      max-width: 100%;
      width: auto !important;
      height: auto !important;
    }

    :deep(img) {
      max-width: 100%;
      width: auto !important;
      height: auto !important;
    }

    :deep(table) {
      table-layout: fixed !important;
      //width: 100% !important;
      border-collapse: collapse;
      border: none;
      margin: 0 !important;
      padding: 0 !important;
    }

    :deep(td),
    :deep(th) {
      //width: 100% !important;
      white-space: nowrap; /* 自适应宽度 */
      word-break: keep-all; /* 避免长单词截断，保持全部 */
      border: solid #676767 1px;
      text-align: center;
      white-space: pre-line;
      word-break: break-all !important;
      word-wrap: break-word !important;
      display: table-cell;
      vertical-align: middle !important;
      white-space: normal !important;
      height: auto;
      vertical-align: text-top;
      padding: 2px 2px 0 !important;
      display: table-cell;
    }

    :deep(.right_di .shareIcon) {
      display: none;
    }
  }
}

.isToggleExpand {
  overflow: hidden !important;
  margin-bottom: 16px;
}
